package bean;
public class Fruit {

    private int id;
    private String fname;
    private Double fprice;
    private String fdate;
    private double fweight;

    public Fruit() {
    }

    public Fruit(int id, String fname, Double fprice, String fdate, double fweight) {
        this.id = id;
        this.fname = fname;
        this.fprice = fprice;
        this.fdate = fdate;
        this.fweight = fweight;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public Double getFprice() {
        return fprice;
    }

    public void setFprice(Double fprice) {
        this.fprice = fprice;
    }

    public String getFdate() {
        return fdate;
    }

    public void setDate(String fdate) {

        this.fdate = fdate;
    }

    public double getFweight() {
        return fweight;
    }

    public void setFweight(double fweight) {
        this.fweight = fweight;
    }

    @Override
    public String toString() {
        return "Fruit{" +
                "id=" + id +
                ", fname='" + fname + '\'' +
                ", fprice=" + fprice +
                ", fdate=" + fdate +
                ", fweight=" + fweight +
                '}';
    }


}
